home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / miline.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  3.4 KB  |  154 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    lineset_dialogId ;
  9. extern int    lineset_numbox[1] ;
  10. extern int    lineset_bottonId[2] ;
  11. extern int    igo_linecancel() ;
  12. extern int    igo_lineset() ;
  13.  
  14. #define ALIGN    4
  15. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  16.  
  17. /*    MMI_init 用データ    */
  18.  
  19. /*    ヘッダ    */
  20.  
  21. MMIINIT    initDataMILINE = { "MmiInit",   8, 0 } ;
  22.  
  23. /* lineset_dialogId */
  24.  
  25. static MMIPACKET d001 = {    &lineset_dialogId,
  26.                             NULL,
  27.                             &MJ_DIALOGL40,
  28.                             OFFSET(DIALOGL40),
  29.                             MS_NONE
  30.                         } ;
  31. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  32.                              255, 131, 515, 330, 8, 7, 8,
  33.                             MS_SRECTL40 | MS_FRAMEL40,
  34.                             NULL,   0,   0
  35.                         } ;
  36.  
  37. /* NULL */
  38.  
  39. static MMIPACKET d002 = {    NULL,
  40.                             &lineset_dialogId,
  41.                             &MJ_MSGL40,
  42.                             OFFSET(MSGL40),
  43.                             MS_NONE
  44.                         } ;
  45. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  46.                              301, 155, 460, 178, 8,15, 8,
  47.                             MS_NONEL40,
  48.                             "路盤設定",
  49.                                1,  12,  12,
  50.                             MS_NONEL40,
  51.                               10,   0
  52.                         } ;
  53.  
  54. /* NULL */
  55.  
  56. static MMIPACKET d003 = {    NULL,
  57.                             &lineset_dialogId,
  58.                             &MJ_MSGL40,
  59.                             OFFSET(MSGL40),
  60.                             MS_NONE
  61.                         } ;
  62. static MSGL40    d003d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  63.                              410, 205, 460, 226, 8,15, 8,
  64.                             MS_NONEL40,
  65.                             "路盤",
  66.                                1,  12,  12,
  67.                             MS_NONEL40,
  68.                               10,   0
  69.                         } ;
  70.  
  71. /* lineset_numbox[0] */
  72.  
  73. static MMIPACKET d004 = {    &lineset_numbox[0],
  74.                             &lineset_dialogId,
  75.                             &MJ_NUMBOXL40,
  76.                             OFFSET(NUMBOXL40),
  77.                             MS_NONE
  78.                         } ;
  79. static NUMBOXL40    d004d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  80.                              344, 202, 397, 229, 8,15, 8,
  81.                             MS_PANELL40 | MS_FRAMEL40,
  82.                             0,
  83.                                1,  12,  12,
  84.                             MS_NONEL40,
  85.                                0,   0,
  86.                               19,   2,  19,   1,   0,
  87.                              263, 264
  88.                         } ;
  89.  
  90. /* lineset_bottonId[1] */
  91.  
  92. static MMIPACKET d005 = {    &lineset_bottonId[1],
  93.                             &lineset_dialogId,
  94.                             &MJ_DBUTTONL40,
  95.                             OFFSET(DBUTTONL40),
  96.                             MS_NONE
  97.                         } ;
  98. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  99.                              398, 268, 477, 293,10,15, 8,
  100.                             MS_PANELL40 | MS_FRAMEL40,
  101.                             igo_linecancel,
  102.                             0x0000
  103.                         } ;
  104.  
  105. /* lineset_bottonId[0] */
  106.  
  107. static MMIPACKET d006 = {    &lineset_bottonId[0],
  108.                             &lineset_dialogId,
  109.                             &MJ_DBUTTONL40,
  110.                             OFFSET(DBUTTONL40),
  111.                             MS_NONE
  112.                         } ;
  113. static DBUTTONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  114.                              281, 267, 360, 292, 4,15, 8,
  115.                             MS_PANELL40 | MS_FRAMEL40,
  116.                             igo_lineset,
  117.                             0x0000
  118.                         } ;
  119.  
  120. /* NULL */
  121.  
  122. static MMIPACKET d007 = {    NULL,
  123.                             &lineset_dialogId,
  124.                             &MJ_MSGL40,
  125.                             OFFSET(MSGL40),
  126.                             MS_NONE
  127.                         } ;
  128. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  129.                              285, 268, 358, 289, 8,15, 8,
  130.                             MS_NONEL40,
  131.                             "実行",
  132.                                1,  12,  12,
  133.                             MS_NONEL40,
  134.                               10,   0
  135.                         } ;
  136.  
  137. /* NULL */
  138.  
  139. static MMIPACKET d008 = {    NULL,
  140.                             &lineset_dialogId,
  141.                             &MJ_MSGL40,
  142.                             OFFSET(MSGL40),
  143.                             MS_NONE
  144.                         } ;
  145. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  146.                              401, 269, 474, 291, 8,15, 8,
  147.                             MS_NONEL40,
  148.                             "取消",
  149.                                1,  12,  12,
  150.                             MS_NONEL40,
  151.                               10,   0
  152.                         } ;
  153.  
  154.